时间:2020-02-22来源:电脑系统城作者:电脑系统城
1.安装依赖环境
yum -y install wge gcc-c++ ..........
2.关闭Firewalld防火墙和SElinux
systemctl stop firewalld
systemct disable firewalld
cd /etc/selinux/config
把enable更改成disabled
3.安装epel、Nux Dextop
rpm -ivh http://mirrors.ustc.edu.cn/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
4.安装mysql或mariadb
yum -y install mariadb mariadb-server
systemctl enable mariadb
systemctl start mariadb
5.进行mariadb初始化设置
mysql_secure_installation
Enter current password for root (enter for none):
Set root password? [Y/n] y
接着输入两次新密码。
Remove anonymous users? [Y/n]
Disallow root login remotely? [Y/n]
Remove test database and access to it? [Y/n]
Reload privilege tables now? [Y/n]
6.登录数据库
mysql -uroot -p #能正常进入数据库说明已经部署成功
7.给数据库设置权限
create user 'root'@'%' identified by 'root远程登录的密码';
grant all privileges on . to 'root'@'%' identified by 'root远程登录的密码';
flush privileges;
8.安装seafile依赖环境
yum install -y python-memcached python-ldap python-urllib3 python-imaging MySQL-python python-distribute ffmpeg ffmpeg-devel
9.下载源码包
wget http://seafile-downloads.oss-cn-shanghai.aliyuncs.com/seafile-server_6.2.5_x86-64.tar.gz
10.解压源码包
tar -zxf seafile-server_6.2.5_x86-64.tar.gz -C 路径
11.进入已经解压的文件进行安装
cd seafile-server-*
./setup-seafile-mysql.sh
12.根据下面内容进行自行设置
What is the name of the server? It will be displayed on the client.
What is the ip or domain of the server?
For example: www.mycompany.com, 192.168.1.101
[ This server's ip or domain ] 192.168.16.203
Where do you want to put your seafile data?
Please use a volume with enough free space
[ default "/root/seafile-data" ]
Which port do you want to use for the seafile fileserver?
[ default "8082" ]
[1] Create new ccnet/seafile/seahub databases
[2] Use existing ccnet/seafile/seahub databases
[ 1 or 2 ] 1
What is the host of mysql server?
[ default "localhost" ]
What is the port of mysql server?
[ default "3306" ]
Enter the name for mysql user of seafile. It would be created if not exists.
[ default "seafile" ]
Enter the password for mysql user "seafile":
[ password for seafile ]
Enter the database name for ccnet-server:
[ default "ccnet-db" ]
Enter the database name for seafile-server:
[ default "seafile-db" ]
Enter the database name for seahub:
[ default "seahub-db" ]
等待片刻........提示安装成功
13.启动服务
./seafile.sh start
14.启动端口
./seafile.sh start 80 #没有设置端口默认是8000端口
15.访问
http://ip:80/ #如果没设置端口号就默认就行
16.登录账号密码
2020-10-11
shell脚本实现磁盘监控系统2020-10-11
详解shell 函数定义与调用2020-10-11
一键配置本地yum源的shell脚本Shell 是一个用 C 语言编写的程序,它是用户使用 Linux 的桥梁。Shell 既是一种命令语言,又是一种程序设计语言。这篇文章主要介绍了shell脚本之备份数据库、代码上线,需要的朋友可以参考下...
2020-02-24